package com.micro.service.config;

import com.micro.service.condition.CommonRequestMappingHandlerMapping;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * Create by Vic Xu on 2019/3/15
 */
@Configuration
public class CommonWebMvcConfigurationSupport extends WebMvcConfigurationSupport {

    @Override
    public RequestMappingHandlerMapping requestMappingHandlerMapping() {
        CommonRequestMappingHandlerMapping handlerMapping = new CommonRequestMappingHandlerMapping();
        handlerMapping.setOrder(0);
        return handlerMapping;
    }
}
